<template>
  <el-dialog title="处理" :visible.sync="dialogVisible" width="60%" class="popup" :before-close="handleClose">
    <el-descriptions title="申报人信息">
      <el-descriptions-item label="申报人">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="电话">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="联系人">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="联系电话">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
    </el-descriptions>
    <br>
    <el-descriptions title="事件信息">
      <el-descriptions-item label="事件编号">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="申报类型">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="事件来源">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="事件性质">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="创建时间">
        <el-date-picker v-model="value1" size="mini" type="date" placeholder="选择日期" />
      </el-descriptions-item>
      <el-descriptions-item label="附件信息">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
    </el-descriptions>
    <br>
    <el-descriptions title="指派信息">
      <el-descriptions-item label="指派人">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="电话">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
    </el-descriptions>
    <br>
    <el-descriptions title="处理信息">
      <el-descriptions-item label="现场描述">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
      <el-descriptions-item label="解决方案">
        <el-input v-model="input2" size="mini" placeholder="请输入内容" />
      </el-descriptions-item>
    </el-descriptions>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="dialogVisible = false">重新分配</el-button>
      <el-button type="primary" size="small" @click="dialogVisible = false">提交</el-button>
    </span>
  </el-dialog>
</template>

<script>
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default {
  components: {
  },
  data () {
    return {
      dialogVisible: false,
      ruleForm: {
        pass: '',
        checkPass: '',
        age: ''
      },

      value: null,
      // define options
      options: [{
        id: 'a',
        label: 'a',
        children: [{
          id: 'aa',
          label: 'aa'
        }, {
          id: 'ab',
          label: 'ab'
        }]
      }, {
        id: 'b',
        label: 'b'
      }, {
        id: 'c',
        label: 'c'
      }]
    }
  },
  computed: {
    rules () {
      return {
        pass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' }
        ],
        checkPass: [
          { required: true, message: '请输入活动名称', trigger: 'blur' }
        ],
        age: [
          { required: true, message: '请输入活动名称', trigger: 'blur' }
        ]
      }
    }

  },
  methods: {
    togglePopup (flag) {
      this.dialogVisible = flag
    },
    handleClose (done) {
      this.$confirm('确认关闭？')
        .then(_ => {
          done()
        })
        .catch(_ => { })
    }
  }
}
</script>

<style lang="scss" scoped>
.el-descriptions {
  border-bottom: 1px solid #cdd0db;
}

.popup {
  ::v-deep .el-dialog {
    border-radius: 4px;
  }
  ::v-deep .el-dialog__header {
    border-bottom: 1px solid #cdd0db;
  }
  ::v-deep .el-dialog__body {
    padding: 30px;
  }
}
</style>

